#ifndef PLOTSETTINGS_H
#define PLOTSETTINGS_H
class PlotSettings
{
 public:
    PlotSettings();
    //void scroll(int dx, int dy);
    void scroll(float dx, float dy);
    void enlarge(float dx,float dy);
    void adjust();
    inline double spanX() const
    {
        return maxX - minX;
    }
    inline double spanY() const
    {
        return maxY - minY;
    }

    double minX;
    double maxX;
    int numXTicks;
    double minY;
    double maxY;
    int numYTicks;
private:
    static void adjustAxis(double &min, double &max, int &numTicks);

};

#endif // PLOTSETTINGS_H
